package com.ruoyi.dataMain.service;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.dataMain.domain.DataConsumptionOriginal;
import com.ruoyi.dataMain.domain.vo.DataConsumptionOriginalVo;
import com.ruoyi.dataMain.domain.bo.DataConsumptionOriginalBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 消耗原始Service接口
 *
 * @author linziheng
 * @date 2024-04-17
 */
public interface IDataConsumptionOriginalService {

    /**
     * 查询消耗原始
     */
    DataConsumptionOriginalVo queryById(Long id);

    R secondary();

    /**
     * 查询消耗原始列表
     */
    TableDataInfo<DataConsumptionOriginalVo> queryPageList(DataConsumptionOriginalBo bo, PageQuery pageQuery);

    /**
     * 查询消耗原始列表
     */
    List<DataConsumptionOriginalVo> queryList(DataConsumptionOriginalBo bo);

    /**
     * 新增消耗原始
     */
    Boolean insertByBo(DataConsumptionOriginalBo bo);

    /**
     * 修改消耗原始
     */
    Boolean updateByBo(DataConsumptionOriginalBo bo);

    /**
     * 校验并批量删除消耗原始信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
